<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>管理员后台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f5f8fa;
            font-family: 'Inter', sans-serif;
            padding: 20px;
        }

       .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 30px;
        }

        h2 {
            color: #0f3460;
            margin-bottom: 20px;
            font-weight: 600;
        }

        ul {
            list-style: none;
            padding-left: 0;
            margin-top: 20px;
        }

        li {
            margin-bottom: 10px;
        }

        a {
            display: block;
            padding: 10px 15px;
            border-radius: 6px;
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: all 0.2s ease;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
        }

        a:hover {
            background-color: #e8f4ff;
            color: #007bff;
            border-color: #007bff;
        }

        a.active {
            background-color: #0f3460;
            color: white;
            border-color: #0f3460;
        }

        a.active:hover {
            background-color: #1a508b;
            color: white;
            border-color: #1a508b;
        }

       .logout-link {
            background-color: #dc3545!important;
            color: white!important;
            border-color: #dc3545!important;
        }

       .logout-link:hover {
            background-color: #c82333!important;
            color: white!important;
            border-color: #c82333!important;
        }
    </style>
</head>

<body>
    <div class="container">
        <h2>欢迎管理员 {{ username }}</h2>
        <ul>
            <li><a href="{{ url_for('admin.list_customers') }}" {% if request.endpoint == 'admin.list_customers' %}class="active"{% endif %}>
                    <i class="fa fa-user-circle mr-2"></i>客户管理
                </a></li>
            <li><a href="{{ url_for('admin.list_cards') }}" {% if request.endpoint == 'admin.list_cards' %}class="active"{% endif %}>
                    <i class="fa fa-credit-card mr-2"></i>银行卡管理
                </a></li>
            <li><a href="{{ url_for('admin.list_savings') }}" {% if request.endpoint == 'admin.list_savings' %}class="active"{% endif %}>
                    <i class="fa fa-money mr-2"></i>存款业务管理
                </a></li>
            <li><a href="{{ url_for('admin.list_trades') }}" {% if request.endpoint == 'admin.list_trades' %}class="active"{% endif %}>
                    <i class="fa fa-exchange mr-2"></i>交易管理
                </a></li>
            <li><a href="{{ url_for('admin.logout') }}" class="logout-link">
                    <i class="fa fa-sign-out mr-2"></i>退出登录
                </a></li>
        </ul>
    </div>
</body>

</html>